.class public Lcom/netease/newsreader/activity/OfflineDownPage;
.super Lcom/netease/newsreader/activity/BaseActivity;
.source "OfflineDownPage.java"


# instance fields
.field private appdata:Lcom/netease/newsreader/activity/MyApplication;

.field private articlesCount:Landroid/widget/TextView;

.field private cancleButton:Landroid/widget/Button;

.field private cancleClickListener:Landroid/view/View$OnClickListener;

.field private confirmButton:Landroid/widget/Button;

.field private confirmClickListener:Landroid/view/View$OnClickListener;

.field private current_col:Ljava/lang/String;

.field private current_num:Ljava/lang/String;

.field private current_num_in_col:Ljava/lang/String;

.field private downloadingLayout:Landroid/widget/LinearLayout;

.field private finish:Z

.field private finishLayout:Landroid/widget/LinearLayout;

.field private finishPic:Landroid/widget/ImageView;

.field private finishText:Landroid/widget/TextView;

.field private finishTime:Landroid/widget/TextView;

.field private finishTitle:Landroid/widget/TextView;

.field private handler:Landroid/os/Handler;

.field private notifiManager:Landroid/app/NotificationManager;

.field private notification:Landroid/app/Notification;

.field private offlineDownText:Landroid/widget/TextView;

.field private pIntent:Landroid/app/PendingIntent;

.field private pb:Landroid/widget/ProgressBar;

.field private percent:I

.field private remoteView:Landroid/widget/RemoteViews;

.field private settings:Landroid/content/SharedPreferences;

.field private titleLayout:Landroid/widget/RelativeLayout;

.field private titleText:Landroid/widget/TextView;


# direct methods
.method public constructor <init>()V
    .locals 2

    .prologue
    const/4 v1, 0x0

    .line 26
    invoke-direct {p0}, Lcom/netease/newsreader/activity/BaseActivity;-><init>()V

    .line 33
    const-string v0, ""

    iput-object v0, p0, Lcom/netease/newsreader/activity/OfflineDownPage;->current_num:Ljava/lang/String;

    .line 34
    const-string v0, ""

    iput-object v0, p0, Lcom/netease/newsreader/activity/OfflineDownPage;->current_col:Ljava/lang/String;

    .line 35
    const-string v0, ""

    iput-object v0, p0, Lcom/netease/newsreader/activity/OfflineDownPage;->current_num_in_col:Ljava/lang/String;

    .line 36
    iput v1, p0, Lcom/netease/newsreader/activity/OfflineDownPage;->percent:I

    .line 55
    iput-boolean v1, p0, Lcom/netease/newsreader/activity/OfflineDownPage;->finish:Z

    .line 149
    new-instance v0, Lcom/netease/newsreader/activity/OfflineDownPage$1;

    invoke-direct {v0, p0}, Lcom/netease/newsreader/activity/OfflineDownPage$1;-><init>(Lcom/netease/newsreader/activity/OfflineDownPage;)V

    iput-object v0, p0, Lcom/netease/newsreader/activity/OfflineDownPage;->handler:Landroid/os/Handler;

    .line 213
    new-instance v0, Lcom/netease/newsreader/activity/OfflineDownPage$2;

    invoke-direct {v0, p0}, Lcom/netease/newsreader/activity/OfflineDownPage$2;-><init>(Lcom/netease/newsreader/activity/OfflineDownPage;)V

    iput-object v0, p0, Lcom/netease/newsreader/activity/OfflineDownPage;->cancleClickListener:Landroid/view/View$OnClickListener;

    .line 223
    new-instance v0, Lcom/netease/newsreader/activity/OfflineDownPage$3;

    invoke-direct {v0, p0}, Lcom/netease/newsreader/activity/OfflineDownPage$3;-><init>(Lcom/netease/newsreader/activity/OfflineDownPage;)V

    iput-object v0, p0, Lcom/netease/newsreader/activity/OfflineDownPage;->confirmClickListener:Landroid/view/View$OnClickListener;

    .line 26
    return-void
.end method

.method static synthetic access$0(Lcom/netease/newsreader/activity/OfflineDownPage;)Landroid/widget/LinearLayout;
    .locals 1
    .parameter

    .prologue
    .line 43
    iget-object v0, p0, Lcom/netease/newsreader/activity/OfflineDownPage;->downloadingLayout:Landroid/widget/LinearLayout;

    return-object v0
.end method

.method static synthetic access$1(Lcom/netease/newsreader/activity/OfflineDownPage;)Landroid/widget/Button;
    .locals 1
    .parameter

    .prologue
    .line 39
    iget-object v0, p0, Lcom/netease/newsreader/activity/OfflineDownPage;->cancleButton:Landroid/widget/Button;

    return-object v0
.end method

.method static synthetic access$10(Lcom/netease/newsreader/activity/OfflineDownPage;)Ljava/lang/String;
    .locals 1
    .parameter

    .prologue
    .line 35
    iget-object v0, p0, Lcom/netease/newsreader/activity/OfflineDownPage;->current_num_in_col:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$11(Lcom/netease/newsreader/activity/OfflineDownPage;)Landroid/widget/ProgressBar;
    .locals 1
    .parameter

    .prologue
    .line 27
    iget-object v0, p0, Lcom/netease/newsreader/activity/OfflineDownPage;->pb:Landroid/widget/ProgressBar;

    return-object v0
.end method

.method static synthetic access$12(Lcom/netease/newsreader/activity/OfflineDownPage;)I
    .locals 1
    .parameter

    .prologue
    .line 36
    iget v0, p0, Lcom/netease/newsreader/activity/OfflineDownPage;->percent:I

    return v0
.end method

.method static synthetic access$13(Lcom/netease/newsreader/activity/OfflineDownPage;)Landroid/widget/TextView;
    .locals 1
    .parameter

    .prologue
    .line 28
    iget-object v0, p0, Lcom/netease/newsreader/activity/OfflineDownPage;->offlineDownText:Landroid/widget/TextView;

    return-object v0
.end method

.method static synthetic access$14(Lcom/netease/newsreader/activity/OfflineDownPage;)Landroid/widget/TextView;
    .locals 1
    .parameter

    .prologue
    .line 29
    iget-object v0, p0, Lcom/netease/newsreader/activity/OfflineDownPage;->articlesCount:Landroid/widget/TextView;

    return-object v0
.end method

.method static synthetic access$15(Lcom/netease/newsreader/activity/OfflineDownPage;)Landroid/widget/ImageView;
    .locals 1
    .parameter

    .prologue
    .line 44
    iget-object v0, p0, Lcom/netease/newsreader/activity/OfflineDownPage;->finishPic:Landroid/widget/ImageView;

    return-object v0
.end method

.method static synthetic access$16(Lcom/netease/newsreader/activity/OfflineDownPage;)Landroid/widget/TextView;
    .locals 1
    .parameter

    .prologue
    .line 47
    iget-object v0, p0, Lcom/netease/newsreader/activity/OfflineDownPage;->finishTitle:Landroid/widget/TextView;

    return-object v0
.end method

.method static synthetic access$17(Lcom/netease/newsreader/activity/OfflineDownPage;)Landroid/widget/TextView;
    .locals 1
    .parameter

    .prologue
    .line 45
    iget-object v0, p0, Lcom/netease/newsreader/activity/OfflineDownPage;->finishText:Landroid/widget/TextView;

    return-object v0
.end method

.method static synthetic access$18(Lcom/netease/newsreader/activity/OfflineDownPage;)Landroid/widget/TextView;
    .locals 1
    .parameter

    .prologue
    .line 46
    iget-object v0, p0, Lcom/netease/newsreader/activity/OfflineDownPage;->finishTime:Landroid/widget/TextView;

    return-object v0
.end method

.method static synthetic access$19(Lcom/netease/newsreader/activity/OfflineDownPage;)Lcom/netease/newsreader/activity/MyApplication;
    .locals 1
    .parameter

    .prologue
    .line 40
    iget-object v0, p0, Lcom/netease/newsreader/activity/OfflineDownPage;->appdata:Lcom/netease/newsreader/activity/MyApplication;

    return-object v0
.end method

.method static synthetic access$2(Lcom/netease/newsreader/activity/OfflineDownPage;)Landroid/widget/LinearLayout;
    .locals 1
    .parameter

    .prologue
    .line 42
    iget-object v0, p0, Lcom/netease/newsreader/activity/OfflineDownPage;->finishLayout:Landroid/widget/LinearLayout;

    return-object v0
.end method

.method static synthetic access$20(Lcom/netease/newsreader/activity/OfflineDownPage;Landroid/app/NotificationManager;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 51
    iput-object p1, p0, Lcom/netease/newsreader/activity/OfflineDownPage;->notifiManager:Landroid/app/NotificationManager;

    return-void
.end method

.method static synthetic access$21(Lcom/netease/newsreader/activity/OfflineDownPage;)Landroid/app/NotificationManager;
    .locals 1
    .parameter

    .prologue
    .line 51
    iget-object v0, p0, Lcom/netease/newsreader/activity/OfflineDownPage;->notifiManager:Landroid/app/NotificationManager;

    return-object v0
.end method

.method static synthetic access$22(Lcom/netease/newsreader/activity/OfflineDownPage;Z)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 55
    iput-boolean p1, p0, Lcom/netease/newsreader/activity/OfflineDownPage;->finish:Z

    return-void
.end method

.method static synthetic access$23(Lcom/netease/newsreader/activity/OfflineDownPage;)Z
    .locals 1
    .parameter

    .prologue
    .line 55
    iget-boolean v0, p0, Lcom/netease/newsreader/activity/OfflineDownPage;->finish:Z

    return v0
.end method

.method static synthetic access$24(Lcom/netease/newsreader/activity/OfflineDownPage;)Landroid/os/Handler;
    .locals 1
    .parameter

    .prologue
    .line 149
    iget-object v0, p0, Lcom/netease/newsreader/activity/OfflineDownPage;->handler:Landroid/os/Handler;

    return-object v0
.end method

.method static synthetic access$25(Lcom/netease/newsreader/activity/OfflineDownPage;)Landroid/content/SharedPreferences;
    .locals 1
    .parameter

    .prologue
    .line 38
    iget-object v0, p0, Lcom/netease/newsreader/activity/OfflineDownPage;->settings:Landroid/content/SharedPreferences;

    return-object v0
.end method

.method static synthetic access$3(Lcom/netease/newsreader/activity/OfflineDownPage;)Landroid/widget/Button;
    .locals 1
    .parameter

    .prologue
    .line 53
    iget-object v0, p0, Lcom/netease/newsreader/activity/OfflineDownPage;->confirmButton:Landroid/widget/Button;

    return-object v0
.end method

.method static synthetic access$4(Lcom/netease/newsreader/activity/OfflineDownPage;Ljava/lang/String;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 33
    iput-object p1, p0, Lcom/netease/newsreader/activity/OfflineDownPage;->current_num:Ljava/lang/String;

    return-void
.end method

.method static synthetic access$5(Lcom/netease/newsreader/activity/OfflineDownPage;Ljava/lang/String;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 34
    iput-object p1, p0, Lcom/netease/newsreader/activity/OfflineDownPage;->current_col:Ljava/lang/String;

    return-void
.end method

.method static synthetic access$6(Lcom/netease/newsreader/activity/OfflineDownPage;Ljava/lang/String;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 35
    iput-object p1, p0, Lcom/netease/newsreader/activity/OfflineDownPage;->current_num_in_col:Ljava/lang/String;

    return-void
.end method

.method static synthetic access$7(Lcom/netease/newsreader/activity/OfflineDownPage;I)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 36
    iput p1, p0, Lcom/netease/newsreader/activity/OfflineDownPage;->percent:I

    return-void
.end method

.method static synthetic access$8(Lcom/netease/newsreader/activity/OfflineDownPage;)Ljava/lang/String;
    .locals 1
    .parameter

    .prologue
    .line 33
    iget-object v0, p0, Lcom/netease/newsreader/activity/OfflineDownPage;->current_num:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$9(Lcom/netease/newsreader/activity/OfflineDownPage;)Ljava/lang/String;
    .locals 1
    .parameter

    .prologue
    .line 34
    iget-object v0, p0, Lcom/netease/newsreader/activity/OfflineDownPage;->current_col:Ljava/lang/String;

    return-object v0
.end method

.method private findViewsById()V
    .locals 3

    .prologue
    const/16 v2, 0x8

    .line 123
    const v0, 0x7f0c010b

    invoke-virtual {p0, v0}, Lcom/netease/newsreader/activity/OfflineDownPage;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/RelativeLayout;

    iput-object v0, p0, Lcom/netease/newsreader/activity/OfflineDownPage;->titleLayout:Landroid/widget/RelativeLayout;

    .line 124
    iget-object v0, p0, Lcom/netease/newsreader/activity/OfflineDownPage;->titleLayout:Landroid/widget/RelativeLayout;

    const v1, 0x7f0c0008

    invoke-virtual {v0, v1}, Landroid/widget/RelativeLayout;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/netease/newsreader/activity/OfflineDownPage;->titleText:Landroid/widget/TextView;

    .line 125
    iget-object v0, p0, Lcom/netease/newsreader/activity/OfflineDownPage;->titleText:Landroid/widget/TextView;

    const-string v1, "\u79bb\u7ebf\u65b0\u95fb\u4e0b\u8f7d"

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 127
    const v0, 0x7f0c010a

    invoke-virtual {p0, v0}, Lcom/netease/newsreader/activity/OfflineDownPage;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ProgressBar;

    iput-object v0, p0, Lcom/netease/newsreader/activity/OfflineDownPage;->pb:Landroid/widget/ProgressBar;

    .line 128
    const v0, 0x7f0c0109

    invoke-virtual {p0, v0}, Lcom/netease/newsreader/activity/OfflineDownPage;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/netease/newsreader/activity/OfflineDownPage;->offlineDownText:Landroid/widget/TextView;

    .line 129
    const v0, 0x7f0c0108

    invoke-virtual {p0, v0}, Lcom/netease/newsreader/activity/OfflineDownPage;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/netease/newsreader/activity/OfflineDownPage;->articlesCount:Landroid/widget/TextView;

    .line 130
    const v0, 0x7f0c010d

    invoke-virtual {p0, v0}, Lcom/netease/newsreader/activity/OfflineDownPage;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    iput-object v0, p0, Lcom/netease/newsreader/activity/OfflineDownPage;->cancleButton:Landroid/widget/Button;

    .line 131
    const v0, 0x7f0c010f

    invoke-virtual {p0, v0}, Lcom/netease/newsreader/activity/OfflineDownPage;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    iput-object v0, p0, Lcom/netease/newsreader/activity/OfflineDownPage;->confirmButton:Landroid/widget/Button;

    .line 132
    iget-object v0, p0, Lcom/netease/newsreader/activity/OfflineDownPage;->confirmButton:Landroid/widget/Button;

    invoke-virtual {v0, v2}, Landroid/widget/Button;->setVisibility(I)V

    .line 134
    const v0, 0x7f0c010c

    invoke-virtual {p0, v0}, Lcom/netease/newsreader/activity/OfflineDownPage;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lcom/netease/newsreader/activity/OfflineDownPage;->downloadingLayout:Landroid/widget/LinearLayout;

    .line 135
    const v0, 0x7f0c010e

    invoke-virtual {p0, v0}, Lcom/netease/newsreader/activity/OfflineDownPage;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lcom/netease/newsreader/activity/OfflineDownPage;->finishLayout:Landroid/widget/LinearLayout;

    .line 136
    iget-object v0, p0, Lcom/netease/newsreader/activity/OfflineDownPage;->finishLayout:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v2}, Landroid/widget/LinearLayout;->setVisibility(I)V

    .line 138
    iget-object v0, p0, Lcom/netease/newsreader/activity/OfflineDownPage;->finishLayout:Landroid/widget/LinearLayout;

    const v1, 0x7f0c0110

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/netease/newsreader/activity/OfflineDownPage;->finishPic:Landroid/widget/ImageView;

    .line 139
    iget-object v0, p0, Lcom/netease/newsreader/activity/OfflineDownPage;->finishLayout:Landroid/widget/LinearLayout;

    const v1, 0x7f0c0111

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/netease/newsreader/activity/OfflineDownPage;->finishTitle:Landroid/widget/TextView;

    .line 140
    iget-object v0, p0, Lcom/netease/newsreader/activity/OfflineDownPage;->finishLayout:Landroid/widget/LinearLayout;

    const v1, 0x7f0c0112

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/netease/newsreader/activity/OfflineDownPage;->finishText:Landroid/widget/TextView;

    .line 141
    iget-object v0, p0, Lcom/netease/newsreader/activity/OfflineDownPage;->finishLayout:Landroid/widget/LinearLayout;

    const v1, 0x7f0c0113

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/netease/newsreader/activity/OfflineDownPage;->finishTime:Landroid/widget/TextView;

    .line 142
    return-void
.end method

.method private setListeners()V
    .locals 2

    .prologue
    .line 145
    iget-object v0, p0, Lcom/netease/newsreader/activity/OfflineDownPage;->cancleButton:Landroid/widget/Button;

    iget-object v1, p0, Lcom/netease/newsreader/activity/OfflineDownPage;->cancleClickListener:Landroid/view/View$OnClickListener;

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 146
    iget-object v0, p0, Lcom/netease/newsreader/activity/OfflineDownPage;->confirmButton:Landroid/widget/Button;

    iget-object v1, p0, Lcom/netease/newsreader/activity/OfflineDownPage;->confirmClickListener:Landroid/view/View$OnClickListener;

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 147
    return-void
.end method


# virtual methods
.method public goBackClick(Landroid/view/View;)V
    .locals 0
    .parameter "view"

    .prologue
    .line 233
    invoke-virtual {p0}, Lcom/netease/newsreader/activity/OfflineDownPage;->finish()V

    .line 234
    return-void
.end method

.method public onApplyTheme()V
    .locals 5

    .prologue
    const v4, 0x7f080027

    const v3, 0x7f020086

    .line 238
    invoke-super {p0}, Lcom/netease/newsreader/activity/BaseActivity;->onApplyTheme()V

    .line 239
    invoke-virtual {p0}, Lcom/netease/newsreader/activity/OfflineDownPage;->getThemeSettingsHelper()Lcom/netease/newsreader/util/ThemeSettingsHelper;

    move-result-object v0

    .line 240
    .local v0, themeSettingsHelper:Lcom/netease/newsreader/util/ThemeSettingsHelper;
    const/high16 v1, 0x7f0c

    const v2, 0x7f020079

    invoke-virtual {v0, p0, v1, v2}, Lcom/netease/newsreader/util/ThemeSettingsHelper;->setViewBackgroud(Landroid/app/Activity;II)V

    .line 241
    const v1, 0x7f0c010b

    const v2, 0x7f0200fe

    invoke-virtual {v0, p0, v1, v2}, Lcom/netease/newsreader/util/ThemeSettingsHelper;->setViewBackgroud(Landroid/app/Activity;II)V

    .line 242
    const v1, 0x7f0c0008

    const v2, 0x7f080025

    invoke-virtual {v0, p0, v1, v2}, Lcom/netease/newsreader/util/ThemeSettingsHelper;->setTextViewColor(Landroid/app/Activity;II)V

    .line 243
    const v1, 0x7f0c006f

    const v2, 0x7f020089

    invoke-virtual {v0, p0, v1, v2}, Lcom/netease/newsreader/util/ThemeSettingsHelper;->setImageViewSrc(Landroid/app/Activity;II)V

    .line 244
    iget-object v1, p0, Lcom/netease/newsreader/activity/OfflineDownPage;->cancleButton:Landroid/widget/Button;

    invoke-virtual {v0, p0, v1, v3}, Lcom/netease/newsreader/util/ThemeSettingsHelper;->setViewBackgroud(Landroid/content/Context;Landroid/view/View;I)V

    .line 245
    iget-object v1, p0, Lcom/netease/newsreader/activity/OfflineDownPage;->cancleButton:Landroid/widget/Button;

    invoke-virtual {v0, p0, v1, v4}, Lcom/netease/newsreader/util/ThemeSettingsHelper;->setTextViewColor(Landroid/content/Context;Landroid/widget/TextView;I)V

    .line 246
    iget-object v1, p0, Lcom/netease/newsreader/activity/OfflineDownPage;->confirmButton:Landroid/widget/Button;

    invoke-virtual {v0, p0, v1, v3}, Lcom/netease/newsreader/util/ThemeSettingsHelper;->setViewBackgroud(Landroid/content/Context;Landroid/view/View;I)V

    .line 247
    iget-object v1, p0, Lcom/netease/newsreader/activity/OfflineDownPage;->confirmButton:Landroid/widget/Button;

    invoke-virtual {v0, p0, v1, v4}, Lcom/netease/newsreader/util/ThemeSettingsHelper;->setTextViewColor(Landroid/content/Context;Landroid/widget/TextView;I)V

    .line 248
    const v1, 0x7f0c0002

    const v2, 0x7f020041

    invoke-virtual {v0, p0, v1, v2}, Lcom/netease/newsreader/util/ThemeSettingsHelper;->setImageViewSrc(Landroid/app/Activity;II)V

    .line 250
    return-void
.end method

.method public onCreate(Landroid/os/Bundle;)V
    .locals 4
    .parameter "icicle"

    .prologue
    const/4 v2, 0x0

    .line 59
    invoke-super {p0, p1}, Lcom/netease/newsreader/activity/BaseActivity;->onCreate(Landroid/os/Bundle;)V

    .line 60
    const/4 v1, 0x1

    invoke-virtual {p0, v1}, Lcom/netease/newsreader/activity/OfflineDownPage;->requestWindowFeature(I)Z

    .line 62
    const v1, 0x7f030045

    invoke-virtual {p0, v1}, Lcom/netease/newsreader/activity/OfflineDownPage;->setContentView(I)V

    .line 64
    invoke-virtual {p0}, Lcom/netease/newsreader/activity/OfflineDownPage;->getApplicationContext()Landroid/content/Context;

    move-result-object v1

    check-cast v1, Lcom/netease/newsreader/activity/MyApplication;

    iput-object v1, p0, Lcom/netease/newsreader/activity/OfflineDownPage;->appdata:Lcom/netease/newsreader/activity/MyApplication;

    .line 66
    invoke-direct {p0}, Lcom/netease/newsreader/activity/OfflineDownPage;->findViewsById()V

    .line 67
    invoke-direct {p0}, Lcom/netease/newsreader/activity/OfflineDownPage;->setListeners()V

    .line 68
    const-string v1, "offline"

    invoke-virtual {p0, v1, v2}, Lcom/netease/newsreader/activity/OfflineDownPage;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v1

    iput-object v1, p0, Lcom/netease/newsreader/activity/OfflineDownPage;->settings:Landroid/content/SharedPreferences;

    .line 72
    :try_start_0
    iget-object v1, p0, Lcom/netease/newsreader/activity/OfflineDownPage;->settings:Landroid/content/SharedPreferences;

    const-string v2, "current_num"

    const-string v3, "0"

    invoke-interface {v1, v2, v3}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    iput-object v1, p0, Lcom/netease/newsreader/activity/OfflineDownPage;->current_num:Ljava/lang/String;

    .line 73
    iget-object v1, p0, Lcom/netease/newsreader/activity/OfflineDownPage;->settings:Landroid/content/SharedPreferences;

    const-string v2, "current_col"

    const-string v3, ""

    invoke-interface {v1, v2, v3}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    iput-object v1, p0, Lcom/netease/newsreader/activity/OfflineDownPage;->current_col:Ljava/lang/String;

    .line 74
    iget-object v1, p0, Lcom/netease/newsreader/activity/OfflineDownPage;->settings:Landroid/content/SharedPreferences;

    const-string v2, "current_num_in_col"

    const-string v3, "0"

    invoke-interface {v1, v2, v3}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    iput-object v1, p0, Lcom/netease/newsreader/activity/OfflineDownPage;->current_num_in_col:Ljava/lang/String;

    .line 75
    iget-object v1, p0, Lcom/netease/newsreader/activity/OfflineDownPage;->settings:Landroid/content/SharedPreferences;

    const-string v2, "percent"

    const/4 v3, 0x0

    invoke-interface {v1, v2, v3}, Landroid/content/SharedPreferences;->getInt(Ljava/lang/String;I)I

    move-result v1

    iput v1, p0, Lcom/netease/newsreader/activity/OfflineDownPage;->percent:I

    .line 77
    iget-object v1, p0, Lcom/netease/newsreader/activity/OfflineDownPage;->pb:Landroid/widget/ProgressBar;

    iget v2, p0, Lcom/netease/newsreader/activity/OfflineDownPage;->percent:I

    invoke-virtual {v1, v2}, Landroid/widget/ProgressBar;->setProgress(I)V

    .line 78
    iget-object v1, p0, Lcom/netease/newsreader/activity/OfflineDownPage;->offlineDownText:Landroid/widget/TextView;

    new-instance v2, Ljava/lang/StringBuilder;

    iget-object v3, p0, Lcom/netease/newsreader/activity/OfflineDownPage;->current_col:Ljava/lang/String;

    invoke-static {v3}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v3

    invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget-object v3, p0, Lcom/netease/newsreader/activity/OfflineDownPage;->current_num_in_col:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 79
    iget-object v1, p0, Lcom/netease/newsreader/activity/OfflineDownPage;->articlesCount:Landroid/widget/TextView;

    iget-object v2, p0, Lcom/netease/newsreader/activity/OfflineDownPage;->current_num:Ljava/lang/String;

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 84
    :goto_0
    new-instance v1, Lcom/netease/newsreader/activity/OfflineDownPage$4;

    invoke-direct {v1, p0}, Lcom/netease/newsreader/activity/OfflineDownPage$4;-><init>(Lcom/netease/newsreader/activity/OfflineDownPage;)V

    .line 119
    invoke-virtual {v1}, Lcom/netease/newsreader/activity/OfflineDownPage$4;->start()V

    .line 120
    return-void

    .line 80
    :catch_0
    move-exception v0

    .line 81
    .local v0, e:Ljava/lang/Exception;
    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

    goto :goto_0
.end method
